package _const

const (
	GUESS_ORDER_INIT     = 1 //等待开奖
	GUESS_ORDER_MISSED   = 2 //未中奖
	GUESS_ORDER_WIN      = 3 //中奖
	GUESS_ORDER_CANCELED = 4 //退回（取消）

	GUESS_PAY_NOT_PAID    = 0 //0 等待结算
	GUESS_PAY_PAID        = 1 //已结算（中奖的指已派奖）
	GUESS_PAY_CANCEL      = 2 //已退款（竞猜取消，没有派奖的、或未中奖的原路退回）
	GUESS_PAY_PAID_CANCEL = 3 //派奖后取消

)

const (
	GUESS_STATUS_OPEN             = 1 //open 请参与竞猜
	GUESS_STATUS_CLOSED           = 2 //CLOSED 不能竞猜
	GUESS_STATUS_CANCELED         = 3 //已取消
	GUESS_STATUS_SETTLED          = 4 //已开奖
	GUESS_STATUS_SETTLED_CANCELED = 5 //开奖又取消
	GUESS_STATUS_INVALID          = 6 //无效（一边无人下注）
)
const (
	QUESTION_STATUS_INIT     = 1 //待审核
	QUESTION_STATUS_READY    = 2 //已审核
	QUESTION_STATUS_CANCELED = 3 //已拒绝
	QUESTION_STATUS_DEL      = 4 //已删
)
const (
	GUESS_INFO_REDIS_KEY = "models_guess:%d"         //"models_guess:10086"表示第10086场的竞猜
	GUESS_USER_REDIS_KEY = "guess_user:%d_%d" //"guess_user:10086:6000000"表示第10086场的竞猜用户6000000的情况
	GUESS_LIST_KEY       = "guess_list_key"   //需要更新的放到这里面来
	GUESS_RECORD         = "GUESS:RECORD:%d"  //竞猜场次信息，带guess_id
)
const (
	GUESS_ERR_STATUS              = "订单状态不对"
	GUESS_ERR_ANCHOR_CANNOT       = "主播没有竞猜权限"
	GUESS_ERR_WRONG_CONTENT       = "选项输入有误或含有特殊字符"
	GUESS_ERR_EMTPY_TITLE         = "问题不能为空"
	GUESS_ERR_UNKNOWN             = "未知错误，请联系管理员"
	GUESS_ERR_BAD_MIN_BET         = "最小参于金额不能小于1"
	GUESS_ERR_BAD_QUESTION        = "问题不属于该主播"
	GUESS_ERR_BAD_QUESTION_STATUS = "问题未审核"
	GUESS_ERR_BAD_DURATION        = "时长太长或太短"
	GUESS_ERR_BAD_LIVE_ID         = "直播场次无效"
	GUESS_ERR_CATE_ID             = "分类无效"
	GUESS_ERR_BAD_GUESS           = "本期竞猜已结束"
	GUESS_ERR_BAD_ITEM            = "无效的竞猜选项"
	GUESS_ERR_LESS_THAN_MIN       = "竞猜金额低于最低门槛"
	GUESS_ERR_BAD_AMOUNT          = "竞猜金额无效"
	GUESS_ERR_GUESS_STATUS        = "场次状态不接受参与"
	GUESS_ERR_SHOULD_ONSIDE       = "不能同时参与多个答案"
	GUESS_ERR_USED_QUESTION       = "在本场直播间已用过此问题"
	GUESS_ERR_TOO_MANY_GUESS      = "本场直播开启的竞猜场次过多"
	GUESS_ERR_SELF_BET            = "主播不可参与自己的竞猜"
)
